/*
 * windowdraw.h
 *
 *  Created on: 2013. 5. 23.
 *      Author: ozarwork@gmail.com
 *        Note: This is a drawing object for a window class. (MVC-View)
 *
 *       Usage:
 */

#ifndef WINDOWVIEW_H
#define WINDOWVIEW_H

#include "def.h"
#include "map.h"

class Map;

class WindowView
{
	public:
		WindowView(HWND hWnd);
		virtual ~WindowView();

		void Draw(int x, int y);
		void Redraw();

	protected:
	private:
		HWND		_hWnd;		// The window to be draw
		HDC			_hDc;		// a device context for the window
		HDC			_hDcMem;	// * double buffering
		HBITMAP		_hBmMem;	// a bitmap for a device context
		HBITMAP		_hBmMemOld;	// * backup buffer
		HFONT		_hFont;		// a font to use
		HFONT		_hOldFont;	// * backup buffer
		PAINTSTRUCT	_ps;		// a paint structure for WM_PAINT
		RECT		_rect;		// a rectangle structure for a client area

		Map 		*m;

};

#endif // WINDOWVIEW_H
